
import request from '@/utils/request'

const api = {
    getUserCustomerList: '/v1/customer/user/list', // 获取用户管理的客户企业（甲方切换企业）
    changeCustomer: '/v1/customer/change/', // 切换甲方企业
}

export function getUserCustomerList (parameter) {
    return request({
        url: api.getUserCustomerList,
        method: 'get',
        headers: {
            'name':'getUserCustomerList',
        },
        params: parameter
    })
}

// 切换甲方企业
export function changeCustomer (customerId) {
    return request({
        url: serCompanyApi.changeCustomer + customerId,
        method: 'post',
        headers: {
            'name':'changeCustomer',
        },
        data: {}
    })
}